GXDefaultFormat
QuickDraw GX sends theGXDefaultFormat
message when an application creates a new format object. You can override theGXDefaultFormat
message to modify or add to the contents of a newly created format object. Your override of theGXDefaultFormat
message must match the following formal declaration:
OSErr MyDefaultFormat (gxFormat aFormat);
aFormat
- The format object.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXDefaultFormat
message when an application calls theGXNewFormat
function to create a new format.You override this message if you need to add additional data to the format object when
it is created. After you forward this message down the message chain, you can add your own information to the format object or change information that was placed there by the default implementation. The default implementation of this message provides the default information for this format object.SPECIAL CONSIDERATIONS
You never send theGXDefaultFormat
message yourself.You must forward the
GXDefaultFormat
message to other message handlers. Always forward it before you add or change format information.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
TheGXNewFormat
function is described in Inside Macintosh: QuickDraw GX Printing.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help